package com.amit.Jsf;

public class UserBean {
	
	private String username;
	private String password;
	private String ERRMSG;
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getERRMSG() {
		return ERRMSG;
	}
	public void setERRMSG(String eRRMSG) {
		ERRMSG = eRRMSG;
	}
	String result=" ";
	public String verifyUser()
	{
		if(username.equals(password))
		{
			result="success";
			
		}
		else
		{
			result="failed";
			 ERRMSG="Invalid username or password";
		}
		return result;
	}
	
	public String gotologin()
	{
		result="login";
		return result;
		
	}
}
